﻿<%@ Page Title="" Language="C#" MasterPageFile="~/edit/Admin.Master" AutoEventWireup="true" CodeBehind="ConfigEdit.aspx.cs" Inherits="ChgDoc.Edit.ConfigEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" runat="server">

<div class="formStyle">
	
    <table cellspacing="0" cellpadding="0" class="std">
		<tr class="head"><td colspan="2"><h5>New Setting</h5></td></tr>
        <tr class="gray"><td class="lbl">Name</td><td><asp:textbox id="txtName" runat="server" class="txtbox" /></td></tr>
        <tr class="gray"><td class="lbl">Value</td><td><asp:TextBox ID="txtValue" runat="server" class="txtbox" /></td></tr>
		<tr><td></td><td ><asp:Button ID="btnSave" Text="save" OnClick="btnSave_Click" runat="server" class="ui-state-default" /></td></tr>
    </table>
	
	
	<asp:DataGrid ID="grdSettings" runat="server" CssClass="grid" AutoGenerateColumns="false" OnEditCommand="grdSettings_Edit"  OnCancelCommand="grdSettings_Cancel" OnUpdateCommand="grdSettings_Update" OnItemCommand="grdSettings_Command">
	<HeaderStyle CssClass="gridHeader" />
	<Columns>
		<asp:BoundColumn DataField="Name" HeaderText="Name"  ReadOnly="true"/>
		<asp:BoundColumn DataField="Value" HeaderText="Value" />
		<asp:EditCommandColumn ButtonType="LinkButton" EditText="Edit" CancelText="Cancel" UpdateText="Save" />
		<asp:ButtonColumn ButtonType="LinkButton" Text="Delete" CommandName="Delete" />
	</Columns>
	</asp:DataGrid>
    
</asp:Content>
